using com.youzu.warh.protocol;


public sealed class ArenaReportContentPool : ProtoPoolBase<ArenaReportContent>
{
    protected override void RecycleChildren(ArenaReportContent data)
    {
        for (int i = 0; i < data.roundFight.Count; i++)
        {
            ProtoFactory.Recycle(data.roundFight[i]);
        }

        for (int i = 0; i < data.keyFrame.Count; i++)
        {
            ProtoFactory.Recycle(data.keyFrame[i]);
        }
    }

    protected override void ClearNetData(ArenaReportContent data)
    {
       data.roundFight.Clear();
       data.keyFrame.Clear();
    }
}
